package xiao.ke.sbdemo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import xiao.ke.sbdemo.model.JsonData;
import xiao.ke.sbdemo.model.User;

import java.util.Date;

/**
 * @Author XiaoKe
 * @Date 2020/9/3 13:27
 * @Description TODO
 */
@Controller
public class UserController {



    @ResponseBody
    @GetMapping("/testjson")
    public Object testjson(){
        System.out.println("xxx");

        return new User(111, "abc123", "10001000", new Date());
    }
}
